package com.fa4j.system.settings.model;


import com.fa4j.common.base.model.CommonState;
import com.fa4j.common.base.model.ModifyCmd;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
@Schema(description = "系统字典编辑参数")
public class DictModifyCmd extends ModifyCmd<Integer> {

    @Size(max = 64)
    @Schema(description = "字典名称")
    private String dictName;

    @Size(max = 64)
    @Schema(description = "字典编码")
    private String dictCode;

    @Size(max = 2048)
    @Schema(description = "字典值")
    private String dictValue;

    @Schema(description = "状态")
    private CommonState state;

    @Schema(description = "优先级")
    private Integer priority;

    @Schema(description = "自定义字段")
    private List<DictCustomField> customFields;

    @Schema(description = "自定义值")
    private Map<String, Object> customData;


}
